<?php defined('SYSPATH') or die('No direct script access.');

class Model_Modification extends ORM {
	
	protected $_table_name = 'models_modifications';
	
	protected $_primary_key = 'id';
	
	protected $_pc_table_columns = array(
		'id' => array(
			'type' => 'INT(11)',
			'AUTO_INCREMENT' => TRUE,
		),
		'model_id' => array(
			'type' => 'INT(11)',
		),
		'_photo' => array(
			'type' => 'VARCHAR(32)',
		),
		'modification' => array(
			'type' => 'VARCHAR(64)',
		),
		'sort' => array(
			'type' => 'INT(11)',
		),
		'text' => array(
			'type' => 'TEXT',
		),
	);
	
	protected $_pc_table_indexes = array(
		'id' => array(
			'PRIMARY_KEY' => array(),
		),
		'_photo' => array(
			'INDEX' => array('name' => '_photo'),
		),
		'modification' => array(
			'INDEX' => array('name' => 'modification'),
		),
		'sort' => array(
			'INDEX' => array('name' => 'sort'),
		),
	);
	
}